<%-- 
    Document   : default
    Created on : Feb 25, 2011, 12:18:24 PM
    Author     : Elise
    Shows current week of roster entries.
--%>
<h1>Roster</h1>
<p><a href="<c:url value='/roster/new'/>">Add new roster entry</a></p>
<p> <a href="<c:url value='/roster/${lastYear}/${lastWeek}'/>">Go to last week</a>
    <a href="<c:url value='/roster/${nextYear}/${nextWeek}'/>">Go to next week</a></p>
<h2>Week ${week} ${year}</h2>
<table>
<tr>
        <th>Shift</th>
        <th>Date</th>
        <th>Time</th>
        <th>On duty</th>
</tr>
<c:forEach var="entry" items="${roster}">
    <tr>
        <td>${entry.shift}</td>
        <td>${entry.date}</td>
        <td>${entry.time}</td>
        <td>${entry.staff}</td>
        <td><a href="<c:url value='/roster/${entry.id}/edit'/>">Edit entry</a></td>
    </tr>
</c:forEach>
</table>
